package net.minecraft.src;

public class mod_SpaceMod extends BaseMod {
	//block ids
	
	//rocket
	static final int rocketId = 161;
	static final int cockpitId = 162;
	static final int middlePieceId = 163;
	static final int middleId = 164;
	static final int rocketBoosterId = 165;
	static final int backId = 166;
	
	//misc
	static final int cheeseId = 160;		
	
	//Instantiate Blocks
	
	//rocket
	static Block rocket1 = new sm_BlockRRocket(rocketId, 16).setBlockName("Rocket");
	static Block rCockpit = new sm_BlockRCockpit(cockpitId, 16).setBlockName("Rocket Cockpit");
	static Block rMiddlePiece = new sm_BlockRMiddlePiece(middlePieceId, 16).setBlockName("Rocket Middle Piece");
	static Block rMiddle = new sm_BlockRMiddle(middleId, 16).setBlockName("Rocket Middle");
	static Block rRocketBooster = new sm_BlockRRocketBooster(rocketBoosterId, 16).setBlockName("Rocket Booster");
	static Block rBack = new sm_BlockRBack(backId, 16).setBlockName("Rocket Back");
	
	//misc
	static Block cheese = new BlockDirt(cheeseId, 16).setBlockName("cheese");
	
	
	//item ids
	static final int rocketPropellent = 167;
	
	//instantiate items
	public static final Item rRocketPropellent = new Item(rocketPropellent).setItemName("derp");
	//rRocketPropellent.iconIndex = ModLoader.addOverride("/gui/items.png","yourItem.png");
	
	
public mod_SpaceMod(){
	
	//register the blocks
	
	//rocket
	ModLoader.registerBlock(rocket1);
	ModLoader.registerBlock(rCockpit);
	ModLoader.registerBlock(rMiddlePiece);
	ModLoader.registerBlock(rMiddle);
	ModLoader.registerBlock(rRocketBooster);
	ModLoader.registerBlock(rBack);
	
	//misc
	ModLoader.registerBlock(cheese);

	//add the block names
	
	//rocket
	ModLoader.addName(rocket1, "lvl1 Rocket");
	ModLoader.addName(rCockpit, "Rocket Cockpit");
	ModLoader.addName(rMiddlePiece, "Rocket Middle Piece");
	ModLoader.addName(rMiddle, "Rocket Middle");
	ModLoader.addName(rRocketBooster, "Rocket Booster");
	ModLoader.addName(rBack, "Rocket Back");
	ModLoader.addName(rRocketPropellent, "Rocket Propellent");
	
	//misc
	ModLoader.addName(cheese, "mothafuckin space cheese");
	
	//add recipes for blocks
	
	//rocket
	ModLoader.addRecipe(new ItemStack(rocket1, 1), new Object[]{		//makes int number of items
		"   ", "CMB", "   ",
		'C', rCockpit,
		'M', rMiddle,
		'B', rBack
	});
	ModLoader.addRecipe(new ItemStack(rCockpit, 1), new Object[]{
		"@##", "@  ", "@##",
		'@', Block.glass,
		'#', Block.blockSteel
	});
	ModLoader.addRecipe(new ItemStack(rMiddlePiece, 1), new Object[]{
		"###", "# #", "###",
		'#', Block.blockSteel
	});
	ModLoader.addRecipe(new ItemStack(rMiddle, 1), new Object[]{
		"   ", "MMM", "   ",
		'M', rMiddlePiece
	});
	ModLoader.addRecipe(new ItemStack(rRocketBooster, 1), new Object[]{
		" O ", "O O", "O O",
		'O', Block.obsidian
	});
	ModLoader.addRecipe(new ItemStack(rBack, 1), new Object[]{
		"#R ", "#R ", "#R ",
		'#', Block.blockSteel,
		'R', rRocketBooster
	});
	ModLoader.addRecipe(new ItemStack(rRocketPropellent, 1), new Object[]{
		"CCC", "CCC", "CCC",
		'C', Item.coal
	});
	
	//misc
	ModLoader.addRecipe(new ItemStack(cheese, 8), new Object[]{
		"DDD", "D#D", "DDD",
		'D', Block.dirt,
		'#', Block.cobblestone
	});
}

public String getVersion(){
	return "0.1";
}
public void load(){
	System.out.println("derp");
}
}
